import request from '@/utils/request'


// 生成id
export function genWorkerId() {
  return request({
    url: 'pay/pay/alipay/genWorkerId',
    method: 'post',
  })
}
// 微信支付
export function alipay_trade_page_pay(out_trade_no,total_amount,subject) {
  return request({
    url: `pay/pay/alipay/alipay_trade_page_pay/${out_trade_no}/${total_amount}/${subject}`,
    method: 'get',
  })
}


export function alipay_trade_query(out_trade_no) {
  return request({
    url: `pay/pay/alipay/alipay_trade_query/${out_trade_no}`,
    method: 'get',
  })
}

//统一支付接口


export function aggregationPay(orderId,payType) {
  return request({
    url: `pay/payagg/aggregationPay?orderId=`+orderId+"&payType="+payType,
    method: 'get',
  })
}





// export function orderQuery(orderId) {
//   return request({
//     url: `wxpay/wxpay/wxpay/orderQuery/${orderId}`,
//     method: 'post',
//   })
// }


